package com.example.service.impl;

import com.example.pojo.SignIn;
import com.example.mapper.SignInMapper;
import com.example.service.ISignInService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 签到表 服务实现类
 * </p>
 *selectListSigInByWorId
 * @author wsl
 * @since 2022-05-12
 */
@Service
public class SignInServiceImpl extends ServiceImpl<SignInMapper, SignIn> implements ISignInService {

    @Autowired
    private SignInMapper sim;

    @Override
    public List<SignIn> selectListSigInByWorId(Integer worid) {
        List<SignIn> inList = sim.selListBywWorId(worid);
        return inList;
    }

    @Override
    public Integer addSignIn(SignIn signIn) {
        return sim.insert(signIn);
    }
}
